//陪训
import request from "@/utils/request"

//获取课程列表
export function getCourseList (params) {
  return request({
    url: "/admin/course/list",
    method: "get",
    params
  })
}
//新增课程列表
export function addCourseList (data) {
  return request({
    url: "/admin/course/add",
    method: "post",
    data
  })
}
//课程详情
export function getCourseDetail (params) {
  return request({
    url: "/admin/course/detail",
    method: "get",
    params
  })
}
//课程删除
export function delCourse (params) {
  return request({
    url: "/admin/course/del",
    method: "post",
    params
  })
}
//课程编辑
export function editCourse (data) {
  return request({
    url: "/admin/course/edit",
    method: "post",
    data
  })
}
//分类课程列表
export function categoryList (params) {
  return request({
    url: "/admin/course/category/list",
    method: "get",
    params
  })
}

//开放管理--获取月子列表
export function getPostpartumList (params) {
  return request({
    url: "/admin/course/postpartum/list",
    method: "get",
    params
  })
}
//开放管理--开关
export function getoPstpartumEnable (data) {
  return request({
    url: "/admin/course/postpartum/enable",
    method: "post",
    data
  })
}